package org.spring.dao;

import org.common.dao.IBaseDAO;
import org.common.entity.Employee;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yexi
 */
public interface IEmployeeDAO extends IBaseDAO<Employee> {

    default List<Employee> selectByIds(List<Integer> ids) {
        return new ArrayList<>();
    }

    default List<Employee> selectBySelective(Employee employee) {
        return new ArrayList<>();
    }

    default int insertSelective(Employee employee) {
        return 0;
    }

    default int updateByIdSelective(Employee employee) {
        return 0;
    }

    /**
     * @param idFlag 是否需要返回主键
     */
    default int insert(Employee entity, boolean idFlag) {
        return 0;
    }

    default int[] batchInsert(List<Employee> employeeList) {
        return new int[0];
    }

    default int[] batchUpdate(List<Employee> employeeList) {
        return new int[0];
    }

    default int[] batchDelete(List<Integer> idList) {
        return new int[0];
    }

}
